﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WindowsFormsView;

namespace WindowsFormsPresenter.RestaurantArea
{
    public class RestaurantAreasPresenter : Presenter<IRestaurantAreasView>
    {
        public RestaurantAreasPresenter(IRestaurantAreasView view)
            : base(view)
        {
        }

        public void DisplayByPageAndBranch(int currentPage)
        {
            View.RestaurantAreas = Model.GetRestaurantAreasByPageAndBranch(currentPage);
        }

        public void DisplayByBranch()
        {
            View.RestaurantAreas = Model.GetRestaurantAreasByBranch();
        }

        public int GetTotalPageByBranch()
        {
            return Model.GetTotalPageFromRestaurantAreaByBranch();
        }

        public void DisplayActiveByBranch()
        {
            View.RestaurantAreas = Model.GetRestaurantAreasActiveByBranch();
        }
    }
}
